/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model;

import DAOInterface.AbstractDAOMapFactory;
import DAOInterface.DAODatasetConnection;
import ModelInterface.IModelDataMap;

/**
 *
 * @author Fabian
 */
public class ModelDataMap implements IModelDataMap{

    
    private DAODatasetConnection myDatasetConnection;
    /**
     * 
     * @param nameDataSource
     * @return
     */
    @Override
    public boolean setConnection(String nameDataSource) {
        myDatasetConnection = AbstractDAOMapFactory.getAbstractControllerFactory(5).getDatasetConnector();
        return myDatasetConnection.setConnection(nameDataSource);
    }

    /**
     * 
     * @return
     */
    @Override
    public String getDataLine() {
        return myDatasetConnection.getLine();
    }

    /**
     * 
     * @return
     */
    @Override
    public String getHeader() {
        return myDatasetConnection.getHeader();
    }
    
}
